﻿import QtQuick 2.0

Item {
    id: menu
    anchors.centerIn: parent
    width: imgBg.width
    height: imgBg.height

    MouseArea{
        anchors.fill: parent
    }

    Image {
        id: imgBg
        source: "qrc:/imamges/image/menubg.png"
    }

    MyButton{
        x: 70
        y: 87
        btnImgStyle: [
                "qrc:/imamges/image/resume.png",   //正常颜色
                "qrc:/imamges/image/resume.png",   //hover颜色
                "qrc:/imamges/image/resume.png",   //press颜色
                "qrc:/imamges/image/resume.png",   //选中颜色
                "qrc:/imamges/image/resume.png",   //选中的hover颜色
                "qrc:/imamges/image/resume.png",   //选中的press颜色
                "qrc:/imamges/image/resume.png"    //置灰的颜色
            ]
        onS_clickBtn: {
            resume()
            menu.visible = false
        }
    }
    MyButton{
        x: 70
        y: 165
        btnImgStyle: [
                "qrc:/imamges/image/restart.png",   //正常颜色
                "qrc:/imamges/image/restart.png",   //hover颜色
                "qrc:/imamges/image/restart.png",   //press颜色
                "qrc:/imamges/image/restart.png",   //选中颜色
                "qrc:/imamges/image/restart.png",   //选中的hover颜色
                "qrc:/imamges/image/restart.png",   //选中的press颜色
                "qrc:/imamges/image/restart.png"    //置灰的颜色
            ]
        onS_clickBtn: {
            restart()
            menu.visible = false
        }
    }
    MyButton{
        x: 70
        y: 241
        btnImgStyle: [
                "qrc:/imamges/image/exit.png",   //正常颜色
                "qrc:/imamges/image/exit.png",   //hover颜色
                "qrc:/imamges/image/exit.png",   //press颜色
                "qrc:/imamges/image/exit.png",   //选中颜色
                "qrc:/imamges/image/exit.png",   //选中的hover颜色
                "qrc:/imamges/image/exit.png",   //选中的press颜色
                "qrc:/imamges/image/exit.png"    //置灰的颜色
            ]
        onS_clickBtn: {
            menu.visible = false
            exit()
        }
    }
}
